package org.omorphdb.core.exception;

import java.io.IOException;
import java.util.Iterator;

/**
 * It is a runtime exception which should be used to include a
 * {@link IOException}. Its porpouse is to be thrown within an iterator methods
 * like {@link Iterator#hasNext()} and {@link Iterator#next()}.
 * 
 * @author Marco Tamburelli
 */
public class WrappedIOException extends RuntimeException
{
	private static final long serialVersionUID = -5496522130259093646L;

	public WrappedIOException(String message, Exception e)
	{
		super(message, e);
	}

	public WrappedIOException(Exception e)
	{
		super(e);
	}

	public WrappedIOException(String message)
	{
		super(message);
	}
}
